/**
 * @title: 未签约模块
 * @description: 
 * @author ling
 */
export default {
	namespaced: true,
	state: {
		shopCarMenuList:uni.getStorageSync("shopCarMenuList") || [],//选中的菜单
		menus:uni.getStorageSync("menus") || "",//菜单信息
		enterprise:uni.getStorageSync("enterprise") || "",//企业信息
		selectExptxt:uni.getStorageSync("selectExptxt") || "",//选中的套餐
		// selectExptxtMenu:uni.getStorageSync("selectExptxtMenu") || "",//选中的套餐菜单
	},
	mutations: {
		["GET_shopCarMenuList"](state,payload){//获取选中的菜单
			state.shopCarMenuList = payload
			uni.setStorageSync('shopCarMenuList', state.shopCarMenuList);
		},
		["GET_menus"](state,payload){
			state.menus = payload
			uni.setStorageSync('menus', state.menus);
		},
		["GET_enterprise"](state,payload){
			state.enterprise = payload
			uni.setStorageSync('enterprise', state.enterprise);
		},
		["GET_selectExptxt"](state,payload){
			state.selectExptxt = payload
			uni.setStorageSync('selectExptxt', state.selectExptxt);
		},
		["GET_selectExptxtMenu"](state,payload){
			state.selectExptxtMenu = payload
			uni.setStorageSync('selectExptxtMenu', state.selectExptxtMenu);
		},
		["REMOVE_item_shopCarMenuList"](state,idx){//删除单个购物车项
			state.shopCarMenuList.splice(idx,1)
			uni.setStorageSync('shopCarMenuList', state.shopCarMenuList);
		},
		["REMOVE_shopCarMenuList"](state){//清空购物车
			state.shopCarMenuList = []
			uni.setStorageSync('shopCarMenuList', state.shopCarMenuList);
		}
	}
}
